import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations'
import actions from './action'
import * as getters from './getters'
import state from './state'
// 注册vuex
Vue.use(Vuex)

// 导出一个新生成的Store对象
export default new Vuex.Store({
  actions,
  getters,
  state,
  mutations
})
